home *** CD-ROM | disk | FTP | other *** search
/ PC Direct 1998 August / PC Direct August 1998.iso / S / powerj / Product / hpp.z / dtjpicbx11.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-25  |  2.7 KB  |  80 lines

  1. // Design Time Java PictureBox implementation. (HPP)
  2.  
  3. #ifndef _DTJPICTBX11_HPP
  4. #define _DTJPICTBX11_HPP
  5.  
  6. #include "dtjcomp11.hpp"
  7. #include "dtjpcanv11.hpp"
  8. #include "dtjpicbn11.hpp"
  9.  
  10. enum ImagePosition {
  11.     eImagePositionDEFAULT = 0,
  12.     eImagePositionCENTER  = 1
  13. };
  14.  
  15. class METAEXPORTCLASSDEF DTJPictureBox11 : public DTJPaintCanvas11
  16. {
  17.     public:
  18.         DTJPictureBox11( const MetaObject * pMetaObj );
  19.         virtual ~DTJPictureBox11();
  20.  
  21.         // URLType
  22.         //
  23.         //    The URL type: Absolute or relative based on the URL of
  24.         //    the document or of the applet code.
  25.                 
  26.         virtual URLType GetURLType() const;
  27.         virtual WBool   SetURLType( URLType t );
  28.  
  29.     virtual void GenClassName( WString & className ) const;
  30.  
  31.         virtual WBool Create( WWindow * parent, const WRect & r,
  32.                               const WChar * text, WStyle style,
  33.                               WStyle exStyle, void * data, WBool isLoading );
  34.                                
  35.         virtual void GenerateCode( MMCodeGeneration mmCodeGen,
  36.                                    ostream& src,
  37.                                    MMCodeGenerationParms& pGenParms );
  38.  
  39.         // The following properties are for C++ form painting only.
  40.         virtual WLong GetInsetsTop() const;
  41.         virtual void  SetInsetsTop( WLong value );
  42.         virtual WLong GetInsetsBottom() const;
  43.         virtual void  SetInsetsBottom( WLong value );
  44.         virtual WLong GetInsetsLeft() const;
  45.         virtual void  SetInsetsLeft( WLong value );
  46.         virtual WLong GetInsetsRight() const;
  47.         virtual void  SetInsetsRight( WLong value );
  48.         virtual const WChar * GetURL() const;
  49.         virtual void  SetURL( const WString & url );
  50.         virtual const ImagePosition GetImagePosition() const;
  51.         virtual void  SetImagePosition( ImagePosition value );
  52.         virtual const WBool GetScaleImage() const;
  53.         virtual void  SetScaleImage( WBool value );
  54.  
  55.     virtual WBool GetImplements( const WString & ) const;
  56.  
  57.     protected:
  58.         virtual void GenerateCreate( const WString& objPrefix,
  59.                                  ostream& src,
  60.                        MMJCodeGenerationParms* pGenParms ) const;
  61.  
  62.     private:
  63.         WLong _insets_top;
  64.         WLong _insets_bottom;
  65.         WLong _insets_left;
  66.         WLong _insets_right;
  67.         
  68.         URLType _url_type;
  69.         WString _url;
  70.  
  71.         ImagePosition _image_position;
  72.         WBool         _scale_image;
  73. };
  74.  
  75. // needed for mdreader
  76. typedef DTJPictureBox11 DTpowersoft__dot__powerj__dot__ui__dot__PictureBox__dot__11;
  77. typedef WPictureBox powersoft__dot__powerj__dot__ui__dot__PictureBox__dot__11;
  78.  
  79. #endif // _DTJPICTBX11_HPP
  80.